#ifndef FACTORY_H
#define FACTORY_H

#include <vector>
#include "object.h"
#include "SFML\Graphics.hpp"

using std::vector;

extern bool caughtTiger;

class Factory
{
public:
	static void DeleteObject( Object * );
	static void AddObject( Object * );

	static void RenderAll();
	static void UpdateAll();
	static void DoCollisions();
	static bool CollisionCheck(sf::FloatRect a, sf::FloatRect b);
	static float GetDistance(sf::Sprite &a, sf::Sprite &b);

private:
	static vector<Object*> m_objectList;
	static vector<Object*> m_isCollidableList;
};

#endif 